package com.jet.member.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2025-03-02
 */
@Getter
@Setter
@TableName("m_member")
@ApiModel(value = "Member对象", description = "")
public class Member implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @TableField("merchant_no")
    private Long merchantNo;

    @TableField("store_no")
    private Long storeNo;

    @TableField("phone")
    private String phone;

    @TableField("name")
    private String name;

    @TableField("sex")
    private Integer sex;

    @TableField("birth_day")
    private LocalDate birthDay;

    @TableField(value = "status", fill = FieldFill.INSERT)
    private Integer status;

    @TableField(value = "remark")
    private String remark;

    @TableField(value = "account_id")
    private String accountId;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField("avatar")
    private String avatar;

    @ApiModelProperty("是否删除")
    @TableField("deleted")
    private Integer deleted;

    @TableField("level_id")
    private String levelId;

    @ApiModelProperty("注册来源方式")
    @TableField("source")
    private Integer source;

    @ApiModelProperty("来源渠道")
    @TableField("channel")
    private Integer channel;

    @ApiModelProperty("推荐人")
    @TableField("reference_id")
    private String referenceId;
}
